<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        html,body{
            height: 100%;
        }
        body{
            margin: 0;
            background: url('img/bg.png') no-repeat 0 0/100% 100%;
        }
        .header{
            height: 70px;
            background-color: rgba(0,0,0,0.6);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .left{
            width: 479px;
            height: 16px;
            /*background-color: #f0ad4e;*/
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-left: 36px;
        }

        .right{
            width: 177px;
            height: 16px;
            /*background-color: #0AA5E2;*/
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #fff;
            margin-right: 36px;
        }

        .right img{
            width: 30px;
            border-radius: 50%;
        }

        .set{
            width: 54px;
        }


        .logo{
            height: 164px;
            /*background-color: #f0cdb9;*/
            display: flex;
            justify-content: center;
            align-items: flex-end;
        }

        .logo img{
            height: 81px;
        }


        .search{
            height: 81px;
            /*background-color: #0c5460;*/
            display: flex;
            justify-content: center;
            align-items: flex-end;
        }

        .input{
            width: 630px;
            height:48px;
            border: 2px solid #c4cccf;
            padding: 0;
        }

        .btn{
            width: 124px;
            height: 52px;
        }

        input{
            outline: none;
        }

        .center{
            width: 1256px;
            height: 410px;
            margin: 70px auto 0px auto;
            padding: 4rem;
            opacity: 0.85;
            background-color: #ffffff;
            border-radius: 20px;
            display: flex;/* 这里是flex的基础 */
            justify-content: space-between; 
            align-items: center;
        }
        .center .picture{
            flex: 6;
        }
        .center .picture img{
            width: 100%;
        }
        .center .news{
            flex: 3;
            padding: 0px;
            display: flex;
            flex-direction:column;
        }

        .center .wrap{
            width: 800px;
            overflow: hidden;
        }
        .center .wrap .box{
            /*width: 400px;*/
            height: 440px;
            display: flex;
            float: left;
        }
        .center .wrap .box .item{
            width: 800px;
        }
        .center .wrap .box img{
            width: 100%;
        }

        .center .list{
            margin: 0;
            padding: 0;
            list-style: none;
            width: 320px;
            height: 360px;
            display: flex;
            flex-wrap: wrap;
            align-content: space-between;
            padding: 6rem;
        }
        .center .list .item{
            line-height: 16px;
        }
    </style>
</head>
<body>

<div class="header">
    <div class="left">
        <span>新闻</span>
        <span>官网</span>
        <span>地图</span>
        <span>直播</span>
        <span>视频</span>
        <span>贴吧</span>
        <span>学术</span>
        <span>更多</span>
    </div>
    <div class="right">
        <span class="set">设置</span>
        <img src="img/header.png">
        <span>Thorncpp</span>
    </div>
</div>

<div class="logo">
    <img src="img/logo.png">
</div>

<div class="search">
    <input type="text" class="input">
    <input type="button" value="开心一下" class="btn">
</div>

<script>
    let text = document.querySelector('.input');
    let btn = document.querySelector('.btn');

    btn.onclick = function(){
        window.location.href = 'http://www.baidu.com/s?wd='+text.value;
    }
</script>

<div class="center">
    <div class="picture">
        <div class="wrap swiper-container">
            <div class="box swiper-wrapper">
                <div class="item swiper-slide"><img src="img/img01.png"></div>
                <div class="item swiper-slide"><img src="img/img02.png"></div>
                <div class="item swiper-slide"><img src="img/img03.png"></div>
                <div class="item swiper-slide"><img src="img/img04.png"></div>
                <div class="item swiper-slide"><img src="img/img05.png"></div>
            </div>
        </div>
    </div>
    
    <script src="js/swiper.min.js"></script>
    
    <script>
        var mySwiper = new Swiper ('.swiper-container', {
            loop: true, // 循环模式选项
        })
    </script>
    <div class="news">
        <ul class="list">
            <li class="item">1  小猫咪 有一个 小狗狗</li>
            <li class="item">2  小可爱 有一个 小憨批</li>
            <li class="item">3  好猫猫 有一个 坏狗狗</li>
            <li class="item">4  豆豆猫 有一个 憨憨狗</li>
            <li class="item">5  聪明兔 有一个 傻子狗</li>
            <li class="item">6  可爱猫 有一个 可爱狗</li>
            <li class="item">7  猫月的 有一个 狗日的</li>
        </ul>
    </div>
    <script src="js/swiper.min.js"></script>
    
    <script>
        var mySwiper = new Swiper ('.swiper-container', {
            loop: true, // 循环模式选项
        })
    </script>
    
</div>

</body>
</html>